<?php
  
  $dataTab = new data();
  $sqlTab =  "SELECT * FROM page WHERE menu_aktiv = 1 AND _usergroup<=$userGrp
            AND item_parent_id = (SELECT id FROM page WHERE titel = '[php_property:menu]') ORDER BY item_order";
  
  $dataTab->getQuery($sqlTab);

  $menuTab = "";
  $nTab = 0;
  
  do {
      
      $nTab++;
      $menuTab = $menuTab.'<li><a href="#tabs-'.$nTab.'">'.$dataTab->data['titel'].'</a></li>';
      
  } while($dataTab->nextRow());

  
  ?> 

<div id="[php_property:id]" class="snapolTab">
    <ul>
       
        <?php echo $menuTab;?>
       
    </ul>
        <?php
         
          $dataTab = new data(); 
         $dataTab->getQuery($sqlTab);
     $nTab = 0;
     
     global $pageTable;
  
  do {
      $nTab++;
      echo '<div id="tabs-'.$nTab.'">';
      
      //$menu = $menu.'<li><a href="#tabs-'.$n.'">'.$data->data['titel'].'</a></li>';
      include ("../code/content/{$pageTable}_text_{$dataTab->data['id']}.php");   
     // echo $n;
      echo '</div>';
      
  } while($dataTab->nextRow());
  ?>
</div>